using UnityEngine;
using System.Collections;

public class FightEndConfirm : MonoBehaviour {
	
	public GameObject nextWindow;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnClick(){
		//if(win)
		if(TaskStatus.Instance().fightScene == 0){
			SceneManagement.GetInstance().SwitchScene("Encounter",true);
			TaskStatus.Instance().fightScene = 1;
		} else {
			//
			nextWindow.SetActive(true);
			transform.parent.gameObject.SetActive(false);
			transform.parent.localPosition = new Vector3(1000,0,0);
			//SceneManagement.GetInstance().SwitchScene("Main");
			TaskStatus.Instance().taskStatus = GameDefine.NPCStatus_CanSubmit;
			TaskStatus.Instance().fightScene = 2;
		}
	}
}
